package team.se.tms.po;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 学生信息类
 *
 * @author qingx
 * @date 2018/12/12
 */
@Data
public class StudentInfo implements Serializable{
    private String stuId;
    private String stuName;
    private String stuSex;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date stuBirth;
    @DateTimeFormat(pattern = "yyyy")
    private Date stuEntryYear;
    //学籍状态
    private String stuEnrollmentState;
    private String stuClass;
    private int stuFailNumber;
    private String stuTelephone;
    private String userId;
    private String teaId;

    public StudentInfo() {

    }

    public StudentInfo(String stuId, String stuName) {
        this.stuId = stuId;
        this.stuName = stuName;
    }

    public StudentInfo(String stuId, String stuName, String stuSex, Date stuBirth, Date stuEntryYear,
                       String stuEnrollmentState, String stuClass, int stuFailNumber, String stuTelephone,
                       String userId, String teaId) {
        this.stuId = stuId;
        this.stuName = stuName;
        this.stuSex = stuSex;
        this.stuBirth = stuBirth;
        this.stuEntryYear = stuEntryYear;
        this.stuEnrollmentState = stuEnrollmentState;
        this.stuClass = stuClass;
        this.stuFailNumber = stuFailNumber;
        this.stuTelephone = stuTelephone;
        this.userId = userId;
        this.teaId = teaId;
    }
}
